@mixin flex($direction: row) {
  display: flex;
  flex-direction: $direction;
}

@mixin drag() {
  // 拖拽移动时
  & {
    outline: 2px dashed $--drag-move-color;
    box-sizing: border-box;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    content: "";
    font-size: 0;
    &::after {
      content: "";
      display: block;
      background: $--drag-move-color-alpha;
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      text-align: center;
      font-size: 16px;
      color: #fff;
      z-index: 10;
    }
  }
}
